package top.xmj.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;


/**
 * @author 冰咖啡
 * @Date:7/12/2022 下午 1:28
 * @Description: 聊天记录-消息内容
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class SubMessage {

  @TableId(type = IdType.ASSIGN_ID)
  @ApiModelProperty(value = "消息id")
  private String id;

  @ApiModelProperty(value = "消息内容")
  private String msgText;

  @ApiModelProperty(value = "创建时间")
  private String createTime;

  @ApiModelProperty(value = "用户名")
  private String username;

  @ApiModelProperty(value = "推送方用户id")
  private String userId;

  @ApiModelProperty(value = "推送方头像")
  private String avatar;

  @ApiModelProperty(value = "接收方用户id")
  private String receiverId;

  @ApiModelProperty(value = "消息状态")
  private Integer status;

  public SubMessage(String msgText, String username, String userId, String avatar, String receiverId) {
    this.msgText = msgText;
    this.username = username;
    this.userId = userId;
    this.avatar = avatar;
    this.receiverId = receiverId;
  }

}